/**
 * Created by oneminute on 7/19/14.
 */
function Type () {}

var types = [
    new Array(),
    [],
    new Boolean(),
    true,             // remains unchanged
    new Date(),
    new Error(),
    new Function(),
    function () {},
    Math,
    new Number(),
    1,                // remains unchanged
    new Object(),
    {},
    new RegExp(),
    /(?:)/,
    new String(),
    "test"            // remains unchanged
];

for( var i = 0; i < types.length; i++ ) {
    //types[i].constructor = Type;
    types[i] = [ types[i].constructor, types[i] instanceof Type, types[i].toString() ];
}

console.log( types.join( "\n" ) );

var lz = require("../lib/utils/modules")();
var item = {
    class: "Commodity"
};
var commodity = new lz[item.class]({_id: lz.Utils.getUUID("u_")});
lz.Logger.info(commodity);